package com.hjq.fcloud.config

import android.text.TextUtils
import com.hjq.fcloud.http.api.InitAppApi

object SystemSet {

    var config: InitAppApi.RetJson? = null

    fun getMenuPermission(bizCode: String?): InitAppApi.RetJson.Mean? {
        if (!TextUtils.isEmpty(bizCode)) {
            config?.menu?.forEach {
                if (it.biz_code.equals(bizCode)) {
                    return it
                }
            }

        }
        return null
    }
}